import sys

from GzLoader import GzLoader

if __name__ == "__main__":
    loader = GzLoader('tools')
    fun_list = loader.get_fun_list()
    if len(sys.argv) > 1 and sys.argv[1] in fun_list:
        loader.get_obj(sys.argv[1])()
    else:
        print('|-> GzTools v1.0', end='\n\n')
        print('|->功能参数列表如下:')
        for s in fun_list:
            print('|', s, ' -> ', fun_list[s])
